package com.ng.db.test;

import com.ng.common.utils.PDFUtils;
import com.ng.common.utils.PageUtils;
import com.ng.common.utils.R;
import com.ng.entity.CJFXBASEINFO;
import com.ng.servive.CjfxBaseService;
import com.ng.stat.entity.BookSortEntity;
import com.ng.stat.service.BookClsService;
import org.checkerframework.common.value.qual.StaticallyExecutable;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

/**
 * @author cb
 * @Description TODO
 * @date 2023/3/9
 */
@SpringBootTest
public class cjfxtest {
    @Autowired
    private CjfxBaseService cjfxBaseService;

    @Autowired

    private BookClsService bookClsService;

    @Test
  public  void  etbasein(){
         {
             CJFXBASEINFO entity =new CJFXBASEINFO();
             PageUtils page=new PageUtils();
            PageUtils  pageData= cjfxBaseService.queryPage(entity,page);

             R.ok(PageUtils.class).setData( pageData);
        }

    }

    @Test
    public   void   bookcls(){
        BookSortEntity bookcls=new BookSortEntity();
        bookcls.setGrade(0);
        bookClsService.querybookcls(bookcls);
    }

//    @Test
//    public   void   pdfimg(){
//        PDFUtils.GeneratedPDFIMG();
//    }
}
